<?php

namespace common\validate;


class ProjectReviewOptions extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // Fields 验证场景定义
    public function sceneFields()
    {
        return $this;
    }

    // Delete 验证场景定义
    public function sceneDelete()
    {
        return $this->append('param.filter', 'require');
    }

    // SaveAllReviewData 验证场景定义
    public function sceneSave()
    {
        return $this
            ->append('data', 'require|array')
            ->append('data.json', 'array');
    }

    public function sceneSelectProjectReviewOptions()
    {
        return $this->append('param.filter', 'require');
    }


    public function sceneSaveProjectReviewOptionsItem()
    {
        return $this->append('step_category_ids', 'require')
            ->append('repair_percent', 'require');
    }
}
